package com.produce.user.entity;

import com.produce.user.util.UuidGenId;
import tk.mybatis.mapper.annotation.KeySql;

import javax.persistence.Column;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * 类描述：用户角色关联实体
 *
 * @author linzf
 */
@Table(name = "t_user_associate_role")
public class UserAssociateRole {

    /**
     * 用户角色关联唯一标识
     */
    @Id
    @Column(name = "userAssociateRoleId")
    @KeySql(genId = UuidGenId.class)
    private String userAssociateRoleId;
    /**
     * 用户唯一标识
     */
    @Column(name = "userId")
    private String userId;
    /**
     * 角色唯一标识
     */
    @Column(name = "roleId")
    private String roleId;

    public String getUserAssociateRoleId() {
        return userAssociateRoleId;
    }

    public void setUserAssociateRoleId(String userAssociateRoleId) {
        this.userAssociateRoleId = userAssociateRoleId;
    }

    public String getUserId() {
        return userId;
    }

    public void setUserId(String userId) {
        this.userId = userId;
    }

    public String getRoleId() {
        return roleId;
    }

    public void setRoleId(String roleId) {
        this.roleId = roleId;
    }
}
